package com.hgx.guligmall.product;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 整合mybatis-plus
 *   a.导入依赖
 *    <dependency>
 *             <groupId>com.baomidou</groupId>
 *             <artifactId>mybatis-plus-boot-starter</artifactId>
 *             <version>3.3.1</version>
 *         </dependency>
 *   b.配置
 *     1.配置数据源
 *       a.导入数据库驱动
 *       b.在application.yml中配置数据源信息
 *     2.配置Mybatis-plus
 *        a.使用@MapperScan
 *        b.sql文件映射位置
 */
@MapperScan("com.hgx.guligmall.product.dao")
@SpringBootApplication
public class GuligmallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuligmallProductApplication.class, args);
    }

}
